package com.project.easy.common.framework.captcha.core.vo;

import java.io.Serializable;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2021/11/21 10:56
 * @description:yan
 */
public class BaseCaptchaConfigVo implements Serializable {
    /**
     * 是否边框
     */
      private  String hasBorder = "yes";
    /**
     * 边框颜色
     */
    private String borderColor = "105,179,90";
    /**
     * 字体颜色
     */
    private String fontColor   =  "blue";
    /**
     * 宽度
     */
    private Integer width = 110;
    /**
     * 高度
     */
    private Integer height = 40;
    /**
     * 字体大小
     */
    private Integer fontSize = 30;
    /**
     * 字符长度
     */
    private Integer length = 4;
    /**
     * 字体
     */
    private String fontNames = "宋体,楷体,微软雅黑";
    /**
     * 背景颜色
     */
    private String backgroundImp = "com.google.code.kaptcha.impl.DefaultBackground";
    /**
     * 字符串
     */
    private String charString = "QWERTYUIOPLKJHGFDSAZXCVBNM123456789";
    /**
     * 字符串生成
     */
    private String textproducer = "com.google.code.kaptcha.text.impl.DefaultTextCreator";
    /**
     * 验证编码超时时间
     */
    private Integer timeOut = 10 * 60;
    /**
     * 秒为单位
     */
    private Integer rate = 100;

    public Integer getRate() {
        return rate;
    }

    public void setRate(Integer rate) {
        this.rate = rate;
    }

    public Integer getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(Integer timeOut) {
        this.timeOut = timeOut;
    }

    public String getHasBorder() {
        return hasBorder;
    }

    public void setHasBorder(String hasBorder) {
        this.hasBorder = hasBorder;
    }

    public String getBorderColor() {
        return borderColor;
    }

    public void setBorderColor(String borderColor) {
        this.borderColor = borderColor;
    }

    public String getFontColor() {
        return fontColor;
    }

    public void setFontColor(String fontColor) {
        this.fontColor = fontColor;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Integer getFontSize() {
        return fontSize;
    }

    public void setFontSize(Integer fontSize) {
        this.fontSize = fontSize;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getFontNames() {
        return fontNames;
    }

    public void setFontNames(String fontNames) {
        this.fontNames = fontNames;
    }

    public String getBackgroundImp() {
        return backgroundImp;
    }

    public void setBackgroundImp(String backgroundImp) {
        this.backgroundImp = backgroundImp;
    }

    public String getCharString() {
        return charString;
    }

    public void setCharString(String charString) {
        this.charString = charString;
    }

    public String getTextproducer() {
        return textproducer;
    }

    public void setTextproducer(String textproducer) {
        this.textproducer = textproducer;
    }

    @Override
    public String toString() {
        return "BaseCaptchaConfigVo{" +
                "hasBorder='" + hasBorder + '\'' +
                ", borderColor='" + borderColor + '\'' +
                ", fontColor='" + fontColor + '\'' +
                ", width=" + width +
                ", height=" + height +
                ", fontSize=" + fontSize +
                ", length=" + length +
                ", fontNames='" + fontNames + '\'' +
                ", backgroundImp='" + backgroundImp + '\'' +
                ", charString='" + charString + '\'' +
                ", textproducer='" + textproducer + '\'' +
                ", timeOut=" + timeOut +
                '}';
    }
}
